package net.core.service.encrype;

import org.apache.commons.dbcp.BasicDataSource;

public class BasicDataSourcePassword extends BasicDataSource {
	
	 private boolean restartNeeded = false;
	//密码转换
	public synchronized void setPassword(String password) {
		password = Encrypter.decrypt(password);//数据库密码解密
		this.password = password;
		this.restartNeeded = true;
	}
	
}
